<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<div th:each="filename:${fileList}" th:if="${fileList !=null }">
    <img style="width: 300px;height: 300px"  th:src="|/upload/${filename}|">
</div>

</body>
</html>
